package practice1;

import java.util.Scanner;

public class P1035 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        int n=1;
        for(double s=0.0;s<=k;s+=1.0/n,n++) {
        }
        System.out.println(n-1);
    }
}
